FROM registry.cn-hangzhou.aliyuncs.com/wb_public/openjdk:8-jre
# 复制jar文件到路径
WORKDIR /app
COPY dist/DmSQL.jar /app/
COPY dist/run.properties /app/
COPY lib /app/lib
RUN ls -l /app
# 时间
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone

# 启动服务
ENTRYPOINT ["java","-jar","/app/DmSQL.jar","-c","run.properties"]